package fi.profecons.csswindows;

/**
 * Interface for implementing action listeners.
 * 
 * @author ProfeCons Oy - Semi Arajuuri
 * 
 */
public interface ActionListener {

	/**
	 * This is the place where most of the actions will be handled. All actions
	 * that have only a source (no target) will be handled by this method. The
	 * action can be either defined by the developer or passed straight through
	 * from JavaScript.
	 */
	public void handleAction(Element e, String action);

	/**
	 * This method will handle actions which have both source and target. At the
	 * moment only drag and drop actions are handled by this method. Dragged
	 * element is the source and drop target is the target.
	 */
	public void handleAction(Element target, Element source, String action);

}
